import { _decorator, Component } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('RecycleComponent')
export class RecycleComponent extends Component {

    unuse(): void {
        console.log('RecycleComponent', 'unuse 回收')
        this.onRecycle();
        this.node.emit('onRecycle');
    }

    onRecycle() {

    }

    reuse(...args: any[]): void {
        console.log('RecycleComponent', 'reuse 复用', args);
        this.onReuse(...args);
        this.node.emit('onReuse', args);
    }

    onReuse(...args: any[]) {

    }
}


